# if 5 > 2:
#     print("5 is greater than 2")
#     print("55555")
# else:
#     print("5 is not greater than 2")
#
# age = 30
# if age < 18:
#     print("Sorry, you are too young to drive this car. Powering off")
# elif age >= 18 and age < 30:
#     print("Powering On. Enjoy the ride!")
# elif age >= 30 and age < 50:
#
#     print("Have a good trip")
# else:
#     print("You are old enough to drive")
#
# # 判断闰年
#
# year = int(input("输入年份："))
# if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
#     print("%d是闰年" % year)
# else:
#     print(year, "不是闰年")
#
# a = int(input("输入a的值："))
# b = int(input("输入b的值："))
# c = int(input("输入c的值："))
#
# if a > b:
#     if a > c:
#         print("a is greater than b and c")
#     else:
#         print("a is greater than b but less than c")
# else:
#     if b > c:
#         print("b is greater than a and c")
#     else:
#         print("b is greater than a but less than c")


# 加减乘除
num1 = float (input("输入第一个数字："))
num2 = float(input("输入第二个数字："))
op = input("输入运算符：")
if op == "+":
    print(num1 + num2)
elif op == "-":
    print(num1 - num2)
elif op == "*":
    print(num1 * num2)
elif op == "/":
    if num2 == 0:
        print("除数不能为0")
    else:
        print(num1 / num2)
else:
    print("输入错误")
